package com.game.business.domain;
import java.math.BigDecimal;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.game.common.annotation.Excel;
import com.game.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 用户优惠券对象 t_coupon_user
 *
 * @author ruoyi
 * @date 2025-10-11
 */
@Data
@TableName(value = "t_coupon_user")
@EqualsAndHashCode(callSuper = true)
public class TCouponUser extends BaseEntity{
private static final long serialVersionUID = 1L;

/** $column.columnComment */
@TableId(type = IdType.ASSIGN_ID)
private String id;
/** "优惠券Id" */
@Excel(name = "优惠券Id")
private String couponId;
/** "标题" */
@Excel(name = "标题")
private String title;
/** "金额" */
@Excel(name = "金额")
private BigDecimal money;
/** "有效开始时间" */
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@Excel(name = "有效开始时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
private Date startDate;
/** "有效截止时间" */
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@Excel(name = "有效截止时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
private Date endDate;
/** "使用时间" */
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@Excel(name = "使用时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
private Date useTime;
/** "状态" */
 @Excel(name = "状态", readConverterExp = "0=：未使用，1：已使用,,2=:已失效")
private String status;
/** "用户Id" */
@Excel(name = "用户Id")
private String userId;

 /** "用户昵称" */
 @Excel(name = "用户昵称")
 @TableField(exist = false)
 private String nickName;



 }
